package com.erp.mapper;

import com.erp.pojo.UNotice;
import com.erp.pojo.UNoticeExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UNoticeMapper {
    long countByExample(UNoticeExample example);

    int deleteByExample(UNoticeExample example);

    int deleteByPrimaryKey(Integer uNId);

    int insert(UNotice record);

    int insertSelective(UNotice record);

    List<UNotice> selectByExample(UNoticeExample example);

    UNotice selectByPrimaryKey(Integer uNId);

    int updateByExampleSelective(@Param("record") UNotice record, @Param("example") UNoticeExample example);

    int updateByExample(@Param("record") UNotice record, @Param("example") UNoticeExample example);

    int updateByPrimaryKeySelective(UNotice record);

    int updateByPrimaryKey(UNotice record);

    int insertUNotice(@Param("uNoticeList") List<UNotice>uNoticeList);

    List<Map>limitByUserId(@Param("map")Map<String, Object>map);

    int countNotice(@Param("map")Map<String, Object> map);

   int updateFlagByUserId(Integer id);
}